<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="x1" style="width: 500px;height: 400px;border: 2px solid blue;"></div>
    <script src="../js/eharts.min.4.7.0.js"></script>
    <script>
        //js 部分
        var myChart = echarts.init(x1);
        myChart.setOption({
            xAxis: {
                name:"衣服销量",
                data: ["衬衫", "羊毛衫", "雪纺衫"],
                // position:"top"
            },
            grid:{
                right:100
            },
            yAxis: {
                name:"单位：件"
            }, 
            tooltip:{},
            series: [{
                name: '小李的销量',
                type: 'bar',
                data: [5, 20, 36]
            },
            {
                name: '小赵的销量',
                type: 'bar',
                data: [15, 10, 96]
            },
            {
                name: '小张的销量',
                type: 'bar',
                data: [15, 10, 96]
            }],
            color:['blue', 'red','green']
        });
    </script>
</body>

</html>